package com.guofen.dao;

import com.guofen.pojo.SjqCompostProduceMaintenanceMonth;
import com.guofen.pojo.SjqCompostProduceMaintenanceWeek;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface SjqCompostProduceMaintenanceWeekMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqCompostProduceMaintenanceWeek record);

    int insertSelective(SjqCompostProduceMaintenanceWeek record);

    SjqCompostProduceMaintenanceWeek selectByPrimaryKey(Integer id);

    SjqCompostProduceMaintenanceWeek getlast(Map<String, Object> data);

    List<SjqCompostProduceMaintenanceWeek> getlastByName(String equipmentName);

    int updateByPrimaryKeySelective(SjqCompostProduceMaintenanceWeek record);

    int updateByPrimaryKey(SjqCompostProduceMaintenanceWeek record);

    int selectInThisWeek();

    List<SjqCompostProduceMaintenanceWeek> getWeekRecords();

    List<SjqCompostProduceMaintenanceWeek> selectAll();

    List<SjqCompostProduceMaintenanceWeek> selectByDate(@Param("startDate") String startDate,
                                                         @Param("endDate") String endDate);
}